package leetcode.array;

import leetcode.array.common.ArrayUtils;

/**
 * AC
 */
class Solution915 {
    public int partitionDisjoint(int[] nums) {

        return ArrayUtils.partitionDisjoint(nums);

    }
}

/**
 * 915. 分割数组
 */
public class leetcode915 {

    public static void main(String[] args) {

        int[] nums = {5, 0, 3, 8, 6};

        int[] nums2 = {1, 1, 1, 0, 6, 12};

        Solution915 solution915 = new Solution915();

        System.out.println(solution915.partitionDisjoint(nums));

        System.out.println(solution915.partitionDisjoint(nums2));

    }
}
